{%* submit by select set by $onchange *%}
{%if isset($langs) && count($langs) > 1%}
<select name='lang' id='lang'{%if $onchange|default:0 eq 1%} onchange='submit();'{%/if%}>
{%html_options values=$langs output=$langs selected=$vars.lang|default:$lang%}
</select>
{%else%}
<b>{%$lang%}</b>
<input type='hidden' name='lang' id='lang' value='{%$lang%}' />
{%/if%}